/**
 * DateTime: 2025/2/16 10:17
 * Author: LMC
 * Comments:
 **/
package com.group.marketsupervision.mapper;

import com.group.marketsupervision.pojo.Equipment;
import org.apache.ibatis.annotations.*;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.util.List;

@CrossOrigin(origins = "http://localhost:5173") // todo 后面改成服务器前端地址
@Mapper
public interface EquipmentMapper {
    List<Equipment> getAllEquipments();

    void insertEquipment(Equipment equipment);

    List<Equipment> getEquipmentsByCompanyName(String companyName);

    Equipment getEquipmentByRegistrationNumber(String registrationNumber);

    void updateEquipmentByRegistrationNumber(Equipment equipment);

    void deleteEquipmentById(int id);

    Integer existsById(int id);

    void updateOverdueStatus(int id, int isOverdue);
}